// app.js
App({
  onLaunch() {
    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)

    // 登录
    wx.login({
      success: res => {
        // 发送 res.code 到后台换取 openId, sessionKey, unionId
      }
    })
  },
  globalData: {
    userInfo: null,
    // ServerAddress: "127.0.0.1:8000",
    // ServerAddress: "10.32.123.14:8000",
    ServerAddress: "2337051839.gnway.cc:80",
    ServerAddress2: "2337051839.gnway.cc:80",
    token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoyLCJ1c2VybmFtZSI6IjE1ODM2NDIyMTc4IiwiZXhwIjoxNzQ1NDE4MTM3fQ.l02IMFPchrt2FDgu_EKBULcuqYYQap9DerTVE62tyOA",
    user_id: 2
  }
})
